<template>
  <label>
    <!-- <input :placeholder="placeholder" :value="value" :type="$attrs.type" /> -->

    <!-- <input
      :placeholder="$attrs.placeholder"
      :value="$attrs.value"
      :type="$attrs.type"
      :disabled="$attrs.disabled"
    /> -->

    <input v-bind="$attrs" @blur="onBlur1" />
  </label>
</template>

<script>
export default {
  //   props: ["placeholder", "value"],

  methods: {
    onBlur1() {
      alert("onBlur1");

      // 触发自定义事件,事件名叫 blur
      this.$emit("blur");
    },
  },
};
</script>
